home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2004 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  775 b 

  1. Path: ctp.com!news
  2. From: Syed Aamer Azam <sazam@ctp.com>
  3. Newsgroups: comp.programming,alt.msdos.programmer,comp.lang.c++
  4. Subject: Re: How to detect HD
  5. Date: 15 Jan 1996 01:38:41 GMT
  6. Organization: Cambridge Technology Partners
  7. Message-ID: <4dcb71$287@concorde.ctp.com>
  8. References: <4d5s19$m7l@nosy.bart.nl> <aprc.536.000FE90E@pcmail.nerc-bas.ac.uk>
  9. NNTP-Posting-Host: wormhole.ctp.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  14.  
  15.  On Windows you can use the API GetDriveType(int n) where n is 
  16. a number that corresponds to a drive letter. i.e. a = 1, c = 3, 
  17. d = 4 etc. By trying all letters from a to z you could find out 
  18.  how many hard drives you have
  19.  Hope this helps
  20.      -Syed
  21.  
  22.